package engine.display.newAttack.vo
{
	import newx.com.config.StaticIni;

	public class FightInfoVo
	{
		//位置
		public var pos 		: int;
		
		//type
		public var type 		: int;
		
		public var configID	: String;
		
		public var realconfigID:String;
		
		public var name		: String;
		
		public var lv			: int;
		
		public var hp			: int;
		
		public var mp			: int;
		
		public var maxHp		: int;
		
		public var maxMp		: int;
		
		public var dead		: int;
		
		public var skill		: String;
		
		public var clothemodel	: String;
		
		public var totalspeed	: String
		 
//		public var petid 		: int;
//		
//		public var petname		: String;
//		
//		public var petgrade	:String;
//		
//		public var petlevel	:String;
//		
//		public var petproplevel:String; 
//		
		//clothemodel
		public function FightInfoVo( fightInfoXml : XML )
		{
			pos 	= fightInfoXml.@pos;
			type 	= fightInfoXml.@type;
			configID= fightInfoXml.@configID;
			name = StaticIni.getSwfLangStr( fightInfoXml.@name );
			realconfigID =  fightInfoXml.@name;
			lv		= fightInfoXml.@lv;
			hp		= fightInfoXml.@hp;
			mp		= fightInfoXml.@mp;
			maxHp	= fightInfoXml.@maxhp;
			totalspeed = fightInfoXml.@totalspeed;
			maxMp 	= 100;
			dead	= 0;
			skill	= fightInfoXml.@ultraskill;
			clothemodel = fightInfoXml.@clothemodel;
			
			if( "" == clothemodel )
			{
				clothemodel = "1";
			}else
			{
				clothemodel = clothemodel=="0"?"1":clothemodel ;
			}
			
//			var id : int = fightInfoXml.@petid;
//				
//			if( 0 == id ) return;
//			
//			petid = int(StaticIni.getIniVar(String(id),"Model"));
//			petname = fightInfoXml.@petname;
//			petgrade= fightInfoXml.@petgrade;
//			petlevel=fightInfoXml.@petlevel;
//			petproplevel=fightInfoXml.@petproplevel;
//			

		}
	}
}